<template>
  <div class="send_a">
    <div class="senda_top">
      <div class="send-header">
        <nav-bar
          title="添加店/地点"
          left-text="取消"
          @click-left="onClickLeft"
        />
      </div>
      <div class="senda_city">
        <router-link :to="{ name: 'selcity', query: { tid: 1 } }"
          ><div class="position">郑州<icon name="arrow-down" /></div
        ></router-link>
        <input type="text" class="search" placeholder="搜索店/地点" />
      </div>
      <p class="p">可能想关联的商户/地点</p>
    </div>
    <div class="shop">
      <ul>
        <li v-for="item in 10" class="shop_lis">
          <i class="fa fa-home"></i>
          <div class="shop_li">
            <p>夏朵花园（复兴西路店）</p>
            <span>淮海路 韩式料理</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script setup>
import { ref } from "vue";
import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";
import { NavBar, Uploader, Cell, CellGroup, Icon, Search } from "vant";
// import useApp from "../global/app"; //引入全局状态数据
// const appData = useApp(); //使用
// const city = appData.selectedcity;
const onClickLeft = () => history.back();
const fileList = ref([]);
const value = ref(""); //搜索框
</script>
<style scoped>
html {
  font-size: 13.3vw;
}
body {
  font-size: 0.2rem;
}
.send_a {
  width: 94%;
  margin: 0 auto;
  /* position: relative; */
  display: flex;
  flex-direction: column;
}
/* .senda_top {
  position: fixed;
  top: 0;
} */
/* .shop {
  position: fixed;
  top: 10rem;
} */
.position {
  width: 5rem;
  line-height: 1.6rem;
}
.senda_city {
  display: flex;
  justify-content: space-between;
  height: 1.6rem;
  margin: 0.5rem 0;
}
.search {
  width: 75%;
  font-size: 0.8rem;
  border: none;
  outline: none;
  text-indent: 1.6rem;
  height: 1.6rem;
  border-radius: 3rem;
  background-color: #ecebeb;
  display: block;
}
.p {
  line-height: 2rem;
  font-size: 0.8rem;
  color: rgb(170, 171, 172);
}

.shop_lis {
  height: 3.6rem;
  border-top: 1px solid #c3c1c1;
  display: flex;
  justify-content: space-around;
  box-sizing: border-box;
  padding: 0.6rem 0;
}
.fa {
  color: #b3afaf;
  width: 2rem;
  height: 2.4rem;
  text-align: center;
  line-height: 2.4rem;
  font-size: 0.8rem;
  background-color: #f4f1f1;
  margin-right: 1rem;
}
.shop_li {
  flex: 1;
  font-size: 0.6rem;
  color: #807e7e;
}
.shop_li p {
  font-weight: bold;
  line-height: 1.4rem;
  color: black;
  font-size: 0.8rem;
}
</style>
